package com.xzzz.common.base.log;

import lombok.Data;

public interface DynamicLogRepository {

    /**
     * 保存日志级别
     *
     * @param path  日志路径
     * @param level 级别
     */
    void save(LevelWrapper levelWrapper);


    @Data
    class LevelWrapper {
        private String path;
        private Long expire;
        private String level;

        public LevelWrapper() {
        }

        public LevelWrapper(String path, String level, Long expire) {
            this.path = path;
            this.expire = expire;
            this.level = level;
        }

    }
}
